﻿using System.ServiceModel;

namespace XchangeStreamer.Server
{
    [ServiceContract()]
    public interface IPublisher
    {
        [OperationContract(IsOneWay = true, Name="Publish")]
        void Publish(XchangeMessage message);

        [OperationContract(IsOneWay = false, Name = "CreateTopic")]
        int CreateTopic(string topicName);

        [OperationContract(IsOneWay = false, Name = "DeleteTopic")]
        void DeleteTopic(int topicId);

        [OperationContract(IsOneWay = false, Name = "UpdateTopic")]
        void UpdateTopic(int topicId, string topicName);
    }
}
